package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * OrderDetailMapper
 *
 * @author liliudong
 * @version 1.0
 * @description
 * @date 2023/8/4 11:29
 */
@Mapper
public interface OrderDetailMapper {
    /**
     * 插入批
     *
     * @param orderDetails 订单细节
     */
    void insertBatch(List<OrderDetail> orderDetails);

    /**
     * 选择列表按订单id
     *
     * @param orderIds 订单id
     * @return {@link List}<{@link OrderDetail}>
     */
    List<OrderDetail> selectListByOrderIds(List<Long> orderIds);
}
